<!DOCTYPE html>
    <html>
        <head>
            <script>
            function myFunction()
            {
                alert("hello world.");
            
            }
            </script>

        </head>
        <body>
            <button onclick="myFunction()">点击这里</button>
               </body>
    </html>